package com.xhs.main.config.yfb;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @create 2020-10-17 15:31
 */
@Configuration
public class YfbConfig implements WebMvcConfigurer {
    //路径映射
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
//        //硬件设计
//        registry.addViewController("/hardware_design.html").setViewName("hardware_design.html");
//        //发布项目
//        registry.addViewController("/mechanical_design.html").setViewName("mechanical_design.html");
//        //软件设计
//        registry.addViewController("/publish_project.html").setViewName("publish_project.html");
//        //软件设计
//        registry.addViewController("/software_design.html").setViewName("software_design.html");
//        //查看项目
//        registry.addViewController("/view_project.html").setViewName("view_project.html");
    }

}
